//
//  OCvhFCGKit.h
//  vhFCGKit
//
//  Created by hspecg on 2019/10/19.
//  Copyright © 2019 vhMedical. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface OCvhFCGKit : NSObject

+(bool)vhfcgCreate:(const char *)me;
+(void)vhfcgDestroy;
+(void)vhfcgSetPatientInfo:(int)ageY gender:(char)gender cmHeight:(float)cmHeight kgWeight:(float)kgWeight;    //'M','F','U'
+(void)vhfcgSetRiskFactors:
    (bool)MVP Migraine:(bool)Migraine    //Autonomia;    //MVP, Migraine
    CADsymp:(int)CADsymp    //0, None, 1:ClassicCADsym, 2:KnownCADasym,
    DiabetesMellitus:(int)DiabetesMellitus /// Diabetes Mellitus. 0,1,2,3,4
    HighCholesterol:(bool)HighCholesterol HighBP:(bool)HighBP Smooking:(bool)Smooking   //BYTE FRF;        //F - bit0: Total cholesterol(>200),1:Systolic BP(>140mmHg),2:Smoking,3:BMI based on Height and Weight
    HeartCondition:(int)HeartCondition //0,1,2,3    //0: Nothing, Asymptomatic,1:Atypical symptom,2:Symptomatic
    SigStress:(bool)SigStress;//,Significant stress > 2 yrs
+(bool)vhfcgSetData12:(NSArray *)shortdataArray SampleRate:(short)SampleRate uVpb:(double)uVpb msRR:(short)msRR;
+(float)vhfcgGetdf;    //功率谱频率分辨率
+(NSArray *)vhfcgGetPsd:(short)lead;    //返回lead通道功率谱密度函数,0-12
+(NSArray *)vhfcgGetPhase;            //返回相移
+(NSArray *)vhfcgGetPulseResponse;    //返回脉冲相应函数
+(NSArray *)vhfcgGetR51Score;
+(int)vhfcgGetCadNo;////CAD Location, see last lines
+(int)vhfcgGetIschemiaSeverity;    //schemic severity. 0,1,2,3: Normal, Mild ischemia,Moderate,Significant,possible scar or false positive
+(int)vhfcgGetCADPresence;//Presence of CAD. 0,1,2: unknown,remote,active

//Coronary Artery Localization of vessel obstruction
//0:    Unknown;
//10:    Right coronary artery;
//20:    LCX(Left Circumflex/Diagonal);
//21:    Low Circumflex Artery/Obtuse Marginal Artery
//22:    Left Main Artery/Left High Circumflex Artery
//30:    LAD(Left Anterior Descending Artery);
//31:    Proximal LAD Artery
//32:    General LAD Artery
//33:    Septal branch of LAD Artery
//40:    Multi-vessel territory
+(int)vhfcgGetCALVO;


+(NSArray *)vhfcgIndexPsd:(short)lead;    // 12[12][5];    //12到功率谱指数,12*5个//H,N,B,A,E
+(NSArray *)vhfcgIndexPhase;    //2021-2-4改成一个指标D        // [3];        //3个相移指标:   D,W,D+W
+(NSArray *)vhfcgIndexImpulseResponse;  //2021-2-5改成2个指标f,M  // [6];//6个脉冲相应指标:  PV,M1,M2,M3,RS,CS

@end

NS_ASSUME_NONNULL_END


/*
//CAD Location
"Septal wall",
"Anterior wall of left ventricle",
"Antero-lateral wall of left ventricle",
"Lateral wall of left ventricle",
"Inferior wall of left ventricle",
"Overall anterior wall of left ventricle",
"Setpal and Lateral wall of left ventricle",
"Setpal and Inferior wall of left ventricle",
"Setpal, Lateral and Inferior wall of left ventricle",
"Anterior and Lateral wall of left ventricle",
"Anterior and Inferior wall of left ventricle",
"Anterior, Lateral and Inferior wall of left ventricle",
"Antero-lateral and Lateral wall of left ventricle",
"Antero-lateral and Inferior wall of left ventricle",
"Antero-lateral, Lateral and Inferior wall of left ventricle",
"Lateral and Inferior wall of left ventricle"
*/

/*
4 vhfcgGetCALVO未完成
 */
